package com.cskaoyan.mapper;

import com.cskaoyan.bean.issue.po.IssuePo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LiangRuiJiang
 * @since 2022/06/04  18:33
 */
public interface IssueMapper {

    /**
     * 通过输入的提问查找对应的问题信息
     *
     * @param sort
     * @param order
     * @param question
     * @return
     */
    List<IssuePo> selectIssueByQuestion(@Param("sort") String sort, @Param("order") String order, @Param("question") String question);

    /**
     * 插入对应的提问
     *
     * @param issuePo
     */
    void insertIssue(@Param("issuePo") IssuePo issuePo);

    /**
     * 编辑提问的信息
     *
     * @param issuePo
     * @return
     */
    int updateIssueDetail(@Param("issuePo") IssuePo issuePo);

    /**
     * 逻辑删除提问
     *
     * @param id
     */
    void updateIssueDeletedById(@Param("id") Integer id);


}
